<?php require VIEW_PATH."/header.php";?>
<body>
	<form method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{{$field['id']}}">
<table class="hd-table hd-table-form hd-form">
    <thead>
    <tr>
        <td colspan="2">修改品牌</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th>品牌名称</th>
        <td>
            <input type="text" name="name" value="{{$field['name']}}" class="hd-w300">
        </td>
    </tr>
   <tr>
        <th>品牌logo</th>
        <td>
        {{if value="$field['logo']"}}
        <img src="{{$field['logo']}}" style="width:50px;">
        <input type="hidden" name="logo" value="{{$field['logo']}}"/>
        {{endif}}

            <input type="file" name="logo" class="hd-w300">
        </td>
    </tr>
     <tr>
        <th>属性</th>
        <td>
            <input type="checkbox" name="hot" value="1"
            {{if value="$field['hot']"}}checked{{endif}}
            > 热门
        </td>
    </tr>
    <tr>
        <th>品牌描述</th>
        <td>
            <textarea name="remark" class="hd-w300 hd-h100">{{$field['remark']}}</textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2">
        <button class="hd-btn hd-btn-primary">提交</button>
        </td>
    </tr>
    </tbody>
</table>
</form>
</body>
</html>